/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';

const CREATE_TEACHER = '/yoocaApi/teacher/createTeacher'
const UPDATE_TEACHER = '/yoocaApi/teacher/updateTeacher'
const QUERY_TEACHER = '/yoocaApi/teacher/queryTeacher'

export async function createTeacher(
  body?: TeacherAPI.CreateTeacherParam,
) {
  return request<CommonAPI.Result<null>>(CREATE_TEACHER, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function updateTeacher(
  body?: TeacherAPI.UpdateTeacherParam,
) {
  return request<CommonAPI.Result<null>>(UPDATE_TEACHER, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function queryTeacher(
  body?: TeacherAPI.QueryTeacherParam,
) {
  return request<CommonAPI.Result<TeacherAPI.QueryTeacherResp>>(QUERY_TEACHER, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}
